Skip to content

Conversation

@guoyunhe
Copy link

@guoyunhe guoyunhe commented Jan 3, 2024

Currently, when users import plugin or locale like the following, it always imports CJS modules:

import advancedFormat from 'dayjs/plugin/advancedFormat'

This PR adds exports to package.json, and makes it possible to automatically import CJS/ESM whenever needed. As a result, users will get smaller bundle sizes and better compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant